package com.czwj.dao;

import java.util.List;
import java.util.Map;

import com.czwj.entities.Pressure;

public interface PressureMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Pressure record);

    int insertSelective(Pressure record);

    Pressure selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Pressure record);

    int updateByPrimaryKey(Pressure record);

	/**
	* @Title: search
	* @Description: TODO
	* @param map
	* @return 参数 
	* @return List<Pressure> 返回类型
	* @throws
	*/
	List<Pressure> search(Map<String,Object> map);

	/**
	* @Title: count
	* @Description: TODO
	* @param map
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int count(Map<String,Object> map);

	Pressure findNewest(Integer equipmentid);

	List<Pressure> findIsWorking();

	List<Pressure> getStopWorkingTimes(Map<String, Object> map);

	Pressure getLastStoping(Map<String, Object> map);

	List<Pressure> getWorkingCircle(Map<String, Object> map);


}